package com.example.demo.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "app")
@Data
public class AppConfig {
    private String name = "defaultName";
    private int timeout = 30;  // 默认30秒
    private boolean enabled = true;
}